﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace MySoftLab.DapFlashCore.CoreSight
{
    public class MyDynamicValue
    {
        public const int IntType = 0;
        public const int FloatType = 1;

        public int Type { get; set; }

        public uint IntValue { get; set; }

        public float FloatValue { get; set; }

        public MyDynamicValue(uint val)
        {
            IntValue = val;
            Type = IntType;
        }

        public MyDynamicValue(float val)
        {
            FloatValue = val;
            Type = FloatType;
        }
    }
}
